﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Microsoft.SharePoint.WebControls;

using Microsoft.SharePoint.Utilities;

namespace Mystery.SharePoint.WebControls
{
    /// <summary>
    /// Adds any required scripts to the page
    /// </summary>
    class ScriptLoader : WebControl
    {
        protected override void OnPreRender(EventArgs e)
        {
            ScriptLink.Register(this.Page, "SPM/jquery-1.6.3.min.js", false, true);
            ScriptLink.RegisterScriptAfterUI(this.Page, "SPM/SPM.js", false, true);
            
            base.OnPreRender(e);
        }
    }
}
